package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class SensitiveKeywords implements Serializable {

	private static final long serialVersionUID = -3947680153247905853L;

	//fields
	private java.lang.Integer id;
	private java.lang.String keyword;
	private java.lang.Integer rank;
	private java.lang.Integer status;
	private java.lang.String type;
	private java.lang.String memo;
	private java.lang.String keywordUser;
	private java.sql.Timestamp lastupdate;

	//default constructor
	public SensitiveKeywords() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.String getKeyword() {
		return keyword;
	}
	public java.lang.Integer getRank() {
		return rank;
	}
	public java.lang.Integer getStatus() {
		return status;
	}
	public java.lang.String getType() {
		return type;
	}
	public java.lang.String getMemo() {
		return memo;
	}
	public java.lang.String getKeywordUser() {
		return keywordUser;
	}
	public java.sql.Timestamp getLastupdate() {
		return lastupdate;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setKeyword(java.lang.String keyword) {
		this.keyword = keyword;
	}
	public void setRank(java.lang.Integer rank) {
		this.rank = rank;
	}
	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}
	public void setType(java.lang.String type) {
		this.type = type;
	}
	public void setMemo(java.lang.String memo) {
		this.memo = memo;
	}
	public void setKeywordUser(java.lang.String keywordUser) {
		this.keywordUser = keywordUser;
	}
	public void setLastupdate(java.sql.Timestamp lastupdate) {
		this.lastupdate = lastupdate;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof SensitiveKeywords))
			return false;

		final SensitiveKeywords sensitiveKeywords = (SensitiveKeywords)other;
		if (!this.id.equals(sensitiveKeywords.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("SensitiveKeywords[")
			.append("id=").append(id).append(", ")
			.append("keyword=").append(keyword).append(", ")
			.append("rank=").append(rank).append(", ")
			.append("status=").append(status).append(", ")
			.append("type=").append(type).append(", ")
			.append("memo=").append(memo).append(", ")
			.append("keywordUser=").append(keywordUser).append(", ")
			.append("lastupdate=").append(lastupdate).append("]").toString();
	}
}